Skip to content

Add figsize handler for plot_probegroup#350

Merged
alejoe91 merged 1 commit into
SpikeInterface:mainfrom
kushaangupta:main
May 26, 2025
Merged

Add figsize handler for plot_probegroup#350
alejoe91 merged 1 commit into
SpikeInterface:mainfrom
kushaangupta:main

Conversation

@kushaangupta

Copy link
Copy Markdown
Contributor

It's hard to change the figsize if same_axes=False in plot_probegroup without changing the default parameters, so this is my suggestion

@codecov

codecov Bot commented May 24, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.76%. Comparing base (a6e124c) to head (e346621).
⚠️ Report is 48 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #350   +/-   ##
=======================================
  Coverage   89.75%   89.76%           
=======================================
  Files          12       12           
  Lines        1972     1973    +1     
=======================================
+ Hits         1770     1771    +1     
  Misses        202      202           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.


import matplotlib.pyplot as plt

figsize = kargs.pop("figsize", None)

@alejoe91 alejoe91 May 24, 2025

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that pop fails if figsize is not in the dict. Can you use get instead?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually you're passing the None, so this works!

@alejoe91 alejoe91 merged commit 27137e9 into SpikeInterface:main May 26, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants